fuzz/x86_emulate: fix bounds for input size
authorPaul Semel <semelpaul@gmail.com>
Fri, 23 Feb 2018 22:48:57 +0000 (23:48 +0100)
committerWei Liu <wei.liu2@citrix.com>
Fri, 2 Mar 2018 12:03:38 +0000 (12:03 +0000)
commit256386f75d50772f23a7e950b3fa0ebb32ea96b9
tree16e8f2d151fdd3be3607037c6c49a72d9b22b8bd
parent4874f3943b6bb945c5d81d2c45a7570f16dee821
fuzz/x86_emulate: fix bounds for input size

The maximum size for the input size was set to INPUT_SIZE, which is actually
the size of the data array inside the fuzz_corpus structure and so was not
abling user (or AFL) to fill in the whole structure. Changing to
sizeof(struct fuzz_corpus) correct this problem.

Signed-off-by: Paul Semel <semelpaul@gmail.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/fuzz/x86_instruction_emulator/fuzz-emul.c